package client;

import java.io.File;

import com.readaloud.dao.InvertedIndexDao;
import com.readaloud.dao.InvertedIndexDaoImpl;

public class BookUploadClient {

	/**
	 * @param args
	 */

	public static void main(String[] args)
	{
		InvertedIndexDao invertedIndexDao = new InvertedIndexDaoImpl();
		//File dir = new File("D://CMPE226//books//11.txt");
		//File dir = new File("D://CMPE226//books//");
		File dir = new File("D://CMPE226//books//11.txt");
		long startTime = System.currentTimeMillis();
		invertedIndexDao.intialize(dir);
		long endTime = System.currentTimeMillis();
		System.out.println("total Time: "+(endTime - startTime)/1000f);
		System.out.println("DONE!");
	}

}
